﻿using System;
using System.Reflection;
using System.Windows.Forms;

namespace ChromiumUpdater
{
    public partial class FrmAbout : IconForm
    {
        public FrmAbout()
        {
            InitializeComponent();
            lblVersion.Text = String.Format("Version {0}", AssemblyVersion);
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            linkLabel1.LinkVisited = true;
            System.Diagnostics.Process.Start("http://twitter.com/zjtopspeed");
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            linkLabel2.LinkVisited = true;
            System.Diagnostics.Process.Start("http://code.google.com/p/chromeupdater/");
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
